package com.shujia.scala

object Demo20Thread {
  def main(args: Array[String]): Unit = {

    val thread = new MyThread()
    thread.start()

    println("main函数")

  }
}


class MyThread extends Thread {
  override def run(): Unit = {
    println("java方式实现多线程")

  }
}